remove useless debug macro from test
reorganise libraries and tests.