jasmine tests

adding jasmine unit tests