add waitpid function test