Removed a lot of IDisposable, and made TestMessageVisitor a common file.