Use an actual empty lambda for tests.
Guard against objects that don't support #call.
Update comment to point to the elasticsearch-api documentation describing #bulk.
Allow arguments to be past to the Rake task, overriding the environment variables.