Added handlers for persist and update
Added draft test cases for these handlers