Fixed test cases for JOINs