http: unit tests for overflow and bad lengths