Added regresion tests.