rigidbody: restore changes during test