add karma, jasmine and some basic tests