inline test of build image code