refactoring
fix last refactoring with jasmine