JUnit tests for doRandomCutting()