NXP-11871: adapt the test for 5.6 and make it more resilient to random failure