bugfix: fix bugs for running 'teststory run'