testing dispose methods for all classes.

a few classes were not being disposed correctly and leaving some
garbage attached.