Add regression tests for issue #135.