split the large test files

So memory leaks are not an issue any more.
Fixed tests
Fixed matrix dimension
change temp dir
ignore more files