Made aspect in TestAttributes of agent/agent_test.go more general as it is not OS-specific