add test code for category, question and answer