Hang-prone tests got proper process dumping added

They were using DumpProcessInformationRule, but incorrectly. So this
commit fixes that as well as making DumpProcessInformation/Rule a bit more
flexible in process selection.

Also added a test for DumpProcessInformation.