added test case for model overwrite