added test for refresh after defer