Added test cases for gallery