Refactored code of v2 category resource. bugid:111788
Suppress warning. bugid:111788
Added tests for v2 asset endpoints. bugid:111788