fix image gallery test