Had to change the order for the tests to pass, as RTree search doesn't guarantee any particular order of elements. Maybe it would be better to sort on both sides of assertion.