Debugged the Planner and the planning tests