INT-71: improved test

The tree to be committed is now generated on the fly instead of upfront, so that less memory is needed for the test.