x86: fix old test code to work again