Add code to test join of single threads or groups