unit tests for utils