sone bug fixes and run_test update