unit tests, serialization