modification to pass test_figures

added patch_visibility attribute to test_figures