Added regression tests for issue #15.