added validator tests for mocks and spys