added test that checks model updated correctly