Allow hook for testing to add writer to test batch.