refactoring RegardingCategoryBlock with some tests