Add tests for utils methods.