fix test coverage of BadStatusError