Fix nested stack unit tests