Added tests for updating domains and variables when editing the design