Add test for the refresh method