Fixed WeakReference test