Fixed the broken OsTest.process and OsTest.killtree tests.

Review: https://reviews.apache.org/r/14072