Starting to write some unit/integration tests for SuperQ.  Fixed some bugs in the process.