ENG-6743 fixed Junit test failure in memcheck build