Could you put this file in apps/gallery/test/marionette/lib? James suggested I do that with similar files in the system app, and I think it makes sense here too.