Added karma and a test
Added view, more tests