fix jasmine test errors