added validator tests.