test spawned process