Simplify inserting pending updates in tests