Add Jasmine tests
Merge branch 'tests'