Fixed bug in QTreeTest

Fixed an error with one of the tests for QTree.