NXP-14654: fix randomness in test because getPendingCommands results depends on speed of async processing