Adding test for stack()