ENG-5708: Fix NPE in tests.