test the update and creation- needs more test