Fixed a handlful of warnings while building the unit tests