re-use stack as test buffer to reduce RAM use