Fixing the test for multiple JOINs.