Add test for unlinking image.