core: fix Machine tests