Fix tests
Allows validator to return an error
Fix pagination loss in Reference