Added testing script, adjusted cases and source.

After much finagling with unittest for Python 2.4, the easiest way to run tests
is to run the runttest script in the root directory.