Remove unused test helper function.