Fix a few Jasmine tests