agent: fix failing monitor test