added unit tests for poi_category.utils.js:isDeletedCategoryUsed() and refactored the function a little bit