chore(codemirror): using scope instead of $rootScope in tests