added a serialisation test and fixtures to produce random test data. related to #19