add compile switch for test.