Hotfix for tests

This patch ensures that creating a new module manager will create a new hardware
manager and that all hardware manager data gets reset