Seriliazation unit tests