Add tests for deserialization of primitives.