Unit test for inline image handling fix introduced in commit 35fae5e486f804c9ef4aac0680dc41c2c150509b