Refactor phrases test