use Math.floor not parseInt
Update comment and test name