Add a test for the bug reported in #642.
Add a test for the bug reported in #642.

This test was already passing for the 3.0 beta, but it fails in 2.11.1,
so I am adding it here so that we do not regress.

caolan/highland,vqvu/highland,vqvu/highland,caolan/highland