ENG-5540 Fixed 'testJVMCrash' test failure and refactored variables