Add serialization test and get UNKNOWN_UNIT from constants