Added update and upsert test