Added some testing for CategoryEntityManager, more TODO