added test for refresh_data()