Added functional test for refresh