Fixed a bug when context managed steps were not recorded if declared in
modules being initiated before pytest.configure