added test case for not ordered tree