Add tests to confirm orm2 validations are exposed correctly through API

Closes #1