Make it works with mac for categories tests
lazy fix categories assertion (need to revisit)