percentThreshold config directive was being ignored.

Fixed that, plus added a nice new integration test case
to make sure we detect if this breaks again.

Bumped up to v0.17.