Add test to check if refresh, refreshes a document