Stack class and related test specs changes