added tests with jasmine