Add tests for all utility functions.