Configure tests to use Test.Framework

Configure tests to use Test.Framework. This will greatly simplify the
tests themselves and make them easier to write.