Test template now loads doc in writer