adding karma/jasmine and a set of initial test cases