Fixed Karma and unit testing environment.