Added Jasmine tests for views. Relates to #1