Test to demonstrate bug in buildtree method

Will now start looking for a fix but am submitting the test now to see if anyone else has a solution.