Fixed bogus switching of os inside agent/{identity,format}_test.go