don't import anymore profile manager
Fix plugin module setting
refactoring tests