fixed inst model tests and fixed duplicate id bug in model class if implicit copy-constructor is used