Fix test to use new validation error