updated Jasmine test