Implemented stack tests