test.lua - examples of genericwriter, plainwriter.