Added static initialization code for classes.  Updated rudimentary tests.