added tests for ntDiff and ellipticcovers.lib

Added tests for ntDiff and ellipticcovers.lib, fixed some minor bugs.