Jasmine tests of validation utility