More resilient test for #1208

First version of the test for #1208 can fail due to too strict assertions.
This version should be more resilient