add tests crossing minimum, issue #147