Add utils_test.go

Tests for utility functions