new testing script
update testing script
clean up clear_refrac logic
remove unnecessary exception handling
add and fix tank and math tests