added test for inserting related sets