added tests with dubious content-length