Fix sending wrong key during not-found callback
Add test for modify api