added karma test suite and wrote first basic tests