Unit test for Join Order