tests for enable/disable middleware at runtime, test messages