[tools.test] fix compile options