Updated clearStack() method in impStack to use correct values.
Added some additional tests.