Add test for stopped_searching callback.