Add proper test case for refresh feature