Fix unittests for 3.1rc

Fixes the test to use the config system and allowed_actions