Adding a test to the visibility field.

#3351