test: Fix stack overflow