Fix refresh tests