Write history (no reading yet) and add some data tests.