Fix jasmine test so it works correctly.