Catch up Gearman's libtest, and fix valgrind warning from new test case.