Setup Test ENV and Wrote Stack Functions