Adds functional test for refresh().