modify test method to verify redirection happens to correct url