Modified karma tests for fitting the new ui