Fix some tests warnings