test join/wait