Test output from child process instead
Refactored to remove repetition
0.5.0