update tests to reflect the changes in error response