fix #946 'data' must be set explicitly to null when using a module controller inside a TemplateTestCase
close #1284