Added the karma tests.