Fix test relying on broken behavior in ftell and pfsockopen

This improves a test that was breaking due to #3018 being surfaced
by a fix to pfsockopen. This changes the test to assert that the
bug in pfsockopen is fixed.