reference_tests: full-coverage test suite for reference counter