test-case for #382