doing testing for category controller