Test out serialization.