Refactored spec for findByCategory to use mock category
Created category entity and relation between thread
Created spec for category entity