add some hpp and a test file for generator