added tests for update and delete functionality