More tests for utils.go