Improve test for inlined html image

Change-Id: I7063a50987b018b9a00bc542ae5ed1b963b17dd8