moved CategoryResource + test