Tested plugin management and added priorities in EventManager