mediagalleryTest: use define.mock