refactor category specs