Testing weak references.