testcookie: get filepath from agent item