Fixed #64. When debug=True, TEST_PLUGINS is not register.