This test contains regression tests for fixes to bugs #1394 and #1395.

See the bugzilla records for these bugs for details. 