tests: fix build for non-x86 architectures

Eventually should add support for those to the registers test