added jasmine tests