fixed race condition in selfdestruction test + style
removed unused code in physicstest
style
corrected usage of REQUIRED/CHECK
removed var declarations in throw checks