Added proper error messages for planner

-Removed test error messages and added proper ones.