Improve test framework

The actor system for the manager must be distinct for each manager to
avoid problems in tests.