Added test for fields visibility.
Added test for fields visibility in case classes.