NEW: added test for stopRefreshThread