Refactored nested cond in run:tests to a proc runs:expand-items