Bug fix for tests
Allow a json file to be passed as data for templating