Added test for utils func