added function to join two models and test for it