Adds test to cotacao command to handle errors