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.
Temporary fix for issue #112
Merge branch 'patch-1' into develop