Stocks are trying to break out of their summer range, but key tests lie ahead