test case updation to remove ref and unref functions