Add unit test exposing more solid reference counter