Fix Karma tests.
Fix whitespace at file endings.