Added methods registerMock and deleteMock

These methods enable temporary mocking of modules when unit testing.