Adds test for issue #440.