Test subprocess improvements