Added tests for utility functionality.