fix error check in test
fix error check in test

LucyBot-Inc/api-spec-converter,lucybot/api-spec-converter,lucybot/api-spec-converter,LucyBot-Inc/api-spec-converter,LucyBot-Inc/api-spec-converter,lucybot/api-spec-converter