Fixing broken jasmine test