integration test for only_if validator