added unit test for reference leakage
added unit test for reference leakage

howbazaar/juju,macgreagoir/juju,dooferlad/juju,bac/juju,alesstimec/juju,dimitern/juju,AdamIsrael/juju,gabriel-samfira/juju,frankban/juju,ericsnowcurrently/juju,AdamIsrael/juju,ericsnowcurrently/juju,alesstimec/juju,anastasiamac/juju,dooferlad/juju,mjs/juju,frankban/juju,dimitern/juju,dooferlad/juju,mikemccracken/juju,anastasiamac/juju,axw/juju,mjs/juju,waigani/juju,mjs/juju,dimitern/juju,anastasiamac/juju,bac/juju,anastasiamac/juju,mjs/juju,waigani/juju,kat-co/juju,bac/juju,howbazaar/juju,kat-co/juju,reedobrien/juju,mikemccracken/juju,macgreagoir/juju,perrito666/juju,howbazaar/juju,dooferlad/juju,reedobrien/juju,gabriel-samfira/juju,dooferlad/juju,waigani/juju,reedobrien/juju,AdamIsrael/juju,marcmolla/juju,bac/juju,bz2/juju,kat-co/juju,frankban/juju,kat-co/juju,reedobrien/juju,AdamIsrael/juju,marcmolla/juju,ericsnowcurrently/juju,dimitern/juju,waigani/juju,mikemccracken/juju,macgreagoir/juju,alesstimec/juju,gabriel-samfira/juju,marcmolla/juju,bz2/juju,frankban/juju,macgreagoir/juju,howbazaar/juju,mjs/juju,mjs/juju,axw/juju,alesstimec/juju,perrito666/juju,ericsnowcurrently/juju,gabriel-samfira/juju,macgreagoir/juju,bz2/juju,marcmolla/juju,kat-co/juju,mikemccracken/juju,marcmolla/juju,perrito666/juju,axw/juju,frankban/juju,axw/juju,dimitern/juju,howbazaar/juju,reedobrien/juju,anastasiamac/juju,perrito666/juju,mjs/juju,bac/juju,ericsnowcurrently/juju,bz2/juju,alesstimec/juju,mikemccracken/juju,bz2/juju,perrito666/juju,gabriel-samfira/juju,axw/juju