Fix external change parameter validation

also add test case

Change-Id: I295e35737597b85bd34d7aefcbee78a076a84263
Merge "Fix external change parameter validation"