Added some random tests and data export.