add tests for 'run'