update unit test based on changes to validation error object structure