fixes karma configuration, and adds first test