tests for Cut block

Add unit tests and fix example. Actualization of the branch.