Builds a correct test tree up to and including the test cases