added some jasmine tests