add more test cases for gallery module