added test for Exception on dispose