Fix test-path
Cast start/end/limit to int