Added unit test for translating form element error messages