Small Function With Unit Test