Fix the test cases and pass in my AdHoc flag to planner