wrote some tests with jasmine