test variable in parent process and child process