Test and correction for #41
Add a test case for redirectCount=0