Bug fix and unit tests
Full test coverage for CategoryServiceImpl