* add updateRecord to role adapter to correctly handle the query when the the is not new. * wip * update and cancel test * clean up * wip * final * clean up * split test in two * clean up