Adds tests to megasena command to handle errors