fixes tests to work with new http error handling behaviour