Mode should be reset in teardown since it is a class method.

Better yet, should do it in ensure so that it is put back on exceptions as well.