linspace function, tests