test stack.c, everything works