test for outer joins