tests on linear functions