Fixed jasmine test code