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.
Merge pull request #800 from tinwelint/2.0-working-dump-proc-info

Hang-prone tests got proper process dumping added