Specify -p argument in run function when running shell tests
Do not run daemon when running with ONLY_TEST_TYPE=nodaemon
Replace `name` and `module` keys with `function` key

Fixes #1031
Use “time” for time segment name