minor: fix race condition in refresh test