Fix for chain with only callback to the run command and no options, added a few test cases also.