refactor all tests with jasmine