Added regression tests.