refactor test files and fix a bug in covSparseisoDiffUnstable