fixed the limit calculation tests