[#1725] Make sure plugins are unloaded after running test_plugin