there are three utility functions that could be tested with unit tests. Use mocks and table tests to test edge cases.