Fix the Jasmine tests