add a test for the validator second constructor argument