Adding test tooling. Fixing errors with generator for Karma.