Fix broken jasmine tests