Fix Test 40 for linear solvers