Fix refresh tests (sinon loading race condition)