Fixed opt build unit test.

- Make environment changes
- Minor fixes to logger