Added a test for GH#7.