test for update and delete gallery