Add some tests for utils functions