Feature/fix cached pagination test

changes:
- renaming of ProgramHistoryController test attribute (still using Status instead of History)
- authorize the function Schedule->find('count')
- add a flushing of cachedCount mechanism when one or multiple element are deleted from each model using the CachedCountBehavior