Fixed unit tests for static build mode.