ref count test is failing