add unit test for stackwithMin