Added appropriate OS-specific checks in TestAttributes of agent/agent_test.go