Merge "Add unit test for RS reference counting."