Debug intermittent tests fix

We are seeing this on travis: 

 the gallery

◦ should only have one image present: ✓ should only have one image present

◦ should display an image fullscreen and go back: ✓ should display an image fullscreen and go back (613ms)

◦ should flick through images in fullscreen mode:

No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.

The build has been terminated