If you post your code as described in How to get the best out of this forum, more forum members will read it.
You have brace mismatches. For example tftPrintTest is defined inside of testroundrects. That can't work.
Use the autoformat (CTRL-T) function in the IDE and you will see your brace {} mismatches.