Improve test stability for #13855 ticket

On slow platforms and on old browsers compared values get pretty close to each other which makes this test unstable.

/cc @gibson042