Added tests to the serialization_spec