category.js test code modify