Add a unit test to verify that #240 is fixed.