#1031 API: added missing event attaching/detaching in CRUD integration tests