fix bug in SensorSetWriterTest
added sql scripts to set up test fixtures