This is really testing that captions are shown by default (when "show captions" has not been set to False), right? In this case, no clicking happens.

I'd change this test to just remove the 2nd line (so you are testing the default behavior).