Atomic functions  in CategoryController and Testing them in CategoryControllerTest