Add test cases for multiple instances inside code blocks
Don't mangle code blocks with multiple instances