agent: added test cases for agents with a configured tags file.