added some matchers and jasmine tests