Fix unit test for joinObject.