Add test for Gallery.js