tests for image sample