Test of object dispose wrapper behaviour