Unit test and document `join`.