re-organized unit tests structure
Created Categories API, closes #1