Added some tests and made some (mostly cosmetic) updates to tweexcavator.py