fixed issue from first commit

objects were not destroyed in previous tests