added serialization tests, which segfault