fix tests
refactor category to use class base view