Added initial regression tests for issue 2.