test add and update