Correct a scoping issue in the sameAs validation unit test