Fixed tests following the UI CSS class changes.
Replace parseInt with Math.floor in the progress calculations.