Add test case for #341 (github).