Refactoring language map test