License deserialization and tests