dispose stack in test method