TST: basinhopping not available in all scipy versions.