SPmatrix:  started set lib, makefile now works for tests :)