Add tests for validate with joined documents