Fixed bug in DataPacketTest and fixed MSVC compiler warnings.