Fix tests warnings