Added Test code with flag image.