CB-5125: replace child process exec with spawn
CB-5125 add tests for chil process spawn