made access of test_functions read only
subtle timing issue - namespace is not necessarily assigned to the header on construction, so assigning/accessing namespace from test before generation is a problem. So moved the addition of includeFilePath which is namespace dependent to the contents function which should only be called from top level generate