Add tests to verify serialization via String/long/Long constructors