Added parseInteger and tests