Fix unit tests warnings