implemented getCategoryTree,modified test inserts