Added tests for the updated addimage_command.