Test for issue 1830