BS-9914 : Fix random tests in error on GatewayExecutionTest

- Rewrite the test