Fix the broken validations test

The validation error box function was not searching the right place
for the appropriate component.
Did the latter. Was going to do it in a later change, but here is appropriate.