fix spring configuration files
add test for addCategoryCommand