Changed nrSteps to integer and adjusted the tests