Initial work on test harness for DSA, as well as soem minor touchups to
other code.