bad content-md5 test

Add some kind of integration test for #596.