added serialization to test (plus included library)