add ref count tests