Factor out run_test bashfunc
Ability to just run one test