Enable test impact collection

Fix race conditions in tests involving multiple processes not giving it
enough time to complete. Also use Tasks instead of Threads when handling
asserts since they will throw on wait.