Regression tests for GH-286.