Added some karma tests