test case and number of images