runcmd: fixing tests