added test for handling portal plugin redirects