agent: fixed tests for tags file