[TASK #44, #40] inject category repository, avoids calling deprecated function makeInstance, unit test for category completed, closes #40