LPS-47581 Fix NPE in tests