Adding separate test cases for module activation and deactivation events #5656