Added regression tests