update test to use status_code instead of checking the error text, #84