Minor refactoring for cancelled peer workflow test.

TNL-900