Check for schema compatibility on re-assignment to a variable
Fix a unit test to avoid schema change on assignment