Base class for cascades and tests
Merge pull request #371 from adamilardi/cascade

 base class for cascades