static linking for test