stack manipulation tests