modified arithTest