Fix Jasmine test failures