fix content-length and chunk-size overflow test

The overflow check didn't work for all possible inputs.