Added some Karma tests