use StringIO for the rack input, test that it works