Fix broken Jasmine tests