Added test for #418.