Add unittests to Stack

Addresses #3.
Adds unittests to the Stack module.