JPM/TJ: test for joining on optional key.