add join query test for belongs to association