Allow to update visibility of a category with the API

The UnitTests are changed thanks to Ben to prevent this bug in the futur