Correct minor error
Fix bug related to categories page and add some tests to check that page works properly