Fixed up some unit tests

Wrote the logic to pass test on getting content by category