Add ImageInsert tests

Closes #1130
Incorporates #1942

Test that the insert command returns errors and reports success appropriately.