Refactoring language test