add test for stack-alloc strategy, fixes