Sealed some classes.  Added some tests.