Stack push and pop basic fixes and unit tests