Fixes build instability

Create test helper function to make the tests more readble.
Removes child tasks and makes all protocol tests synchronous.