Fix a memory leak in intrusive ptr test. (#325)
Fix a memory leak in intrusive ptr test. (#325)

* Fix a memory leak in intrusive ptr test.

One of the clauses of the intrusive_ptr test FactoryConstructionWorks
constructed a pointer with an initial count of 10. However, this means
that when the pointer goes out of scope, it just decreases the count by
1. This change manually decreases it 10 more times so it will be
deleted.

* Make test no longer set count, add another field some_flag instead.

This allows us to test setting a field without disturbing the reference
counting.
google-research/raksha,google-research/raksha,google-research/raksha,google-research/raksha