chore(tests): fix the karma tests and coverage