test stack impl.