Add test coverign #380 case
Merge pull request #386 from romainneutron/fix-380

Add test covering #380 case