Add some tests for utils