Completed tests for utility functions