Problem with tests and linearsolver.

Tests fail when I compile without linearsolver.
Tests will probably fail without linearsolver and swig.