Add tests of clean_categories