Add test code adding and getting categories