Add ECC import regression tests and fixed a regression.