Made the TestCustomHandler test completely self-contained.
Used a helper class rather than an attribute on the TestCase class.