Changed the way to specify the location about which moments are computed in the template config and in all the test cases configs