Fixed some issues mentioned by scrutinizer.
Added testcase for the XZVER command.