remove debug output
remove unneeded output
fix index of instructions
add test for #1034
partially fixes #1034
partially fixes #1034