Fix updateProperties modifiying models stored in memory adapter
Add test for updateProperties affecting the data store