test for saving categories.