remove the test code in hpp