Wrote tests and cleaned up some things for etlTest to work properly.