Add jasmine tests for utils