wrote a test for ng-repeat on categoryDir