#2510: Added method for creating trees with a specific length to the PTC2 and adapted the according unit test.