Refactoring karma specs.