test strong, weak references