Add tests for uncovered utils functions