clean up __main__ in basinhopping.py
add a few more tests