Move [].join

The [].join call was in the wrong spot which meant opaque was tagged onto the end incorrectly.

Fix tests.