working test case for build_image