Add test for batch functionality

Need a test which covers batch rendering of templates.