refine tests for utils