Functional tests for listing threads.