Adding some karma tests