Added tests for galleryService abstraction