validator tests