[agent] functional test should show agent out/err on failure