Add tests about stack classes