1. Added a failing test case to verify defect MAGN-775
2. Updated "StateMachine.CreateCodeBlockNode" method to honor the click location