REF: cleanup and adjusting some conditions in brentq_expanding
REF: rootfinding, move test and example out of module
REF rootfindig: fix tests and examples after move, raise one more case