Wrote tests for utility functions