unit-test: gallery: add new APIs