Add tests for stack data file generation