Unit test for StackX