Added appropriate OS-specific permission checking for agent/identity and format tests