Add a command to list participating nodes
Fix formatting
Remove unused variable
Add a bunch of tests (and corresponding infrastructure