Fix unittests on 32 bit systems

Bit of a hack - dynamically detecting the machine, and using that for
the assertion. It will get the development carry on for now.

fixes xenserver/planex#57