added test for showHidden flag