update jasmine test code