added test for key ordering on updates