Add a test that sometimes reproduce the bug I encounter with promise