x86: fix excessive use of stack memory in test