Added create_category() test helper
Some refactoring
Added Category retrieve tests