Tests for execution order for parallel functions
Code tidy