finish update tests, fix bug in UoW