added jasmine test cases