Fixed a bug when context managed steps were not recorded

modules being initiated before pytest.configure