added tests to stack calculator