update tests to handle varying status code