refactored and enhanced plugin portal tests