Fix spec and add spec test for nested stack