finished the mocha testing for planner functions