Cleanup the PatternExtractionTests test file and use the more easy approach to create trees.