Gallery tests - wait for js to have loaded images rather than trust HTML
Merge pull request #566 from zacc/gallery_init_wait

Gallery tests - wait for js to have loaded rather than HTML