greentest: add getrefcount()