Added some test on join inheritance