add the test cases for the gallery api