added unit tests for vector serialization