We have a plenty of samples for simple testing of CPM functionality (under t/ directory) but they should be reimpleented as standard unit-tests