add karma tests