Test code for a gallery