agent: add test for parsing tags file