Add test for run method error path