add several custom method and  new tests for the 'plans' models