Fixes log warnings on unit tests