adding example using mocks to test validators