fix config kwarg not being passed to search and delete_all and add test for it

@emre hi
I added a tiny fix to search and delete_all commands with tests and hope it helps.