Add several automated tests & minor fixes.