Added karma configuration and test