Added unit test and additional coding for a join of two structures with shared unique element references.