[tests] add tests for linear solvers