Fix Jasmine tests