Add failing tests for custom validator functions.

[ci skip]
(issue #3)
Add support for custom validator functions.

(closes #3)