Added test_refcount.