Pulling out code to test the MyStack

Test code put into MyStackTests class