Added error tests for Expansion
Update compact contexts which do not have @context to contain an empty @context.