Merge "Add simple test for reference counting."