bisect: add tests to document expected behaviour in presence of broken trees.