[REF] refactor and fix export dependency for category, add unit test
[FIX] fix file misspelling