added serialization tests, run script for binaries