Always pick the right key
Added tests for metadata merging with hstack, vstack, and join