Fixed generated test code to compile in C++11

Generated test code is now self-sufficient (includes its headers, does not assume using namespace std)