Add test for category brick factory
Refactor failed tests caused by new brick category factory