added dispose event. fixes #613

Added dispose event trigger and addition check to existing dispose test.