Issue with autoPostRedirect while CLI test