Tests for #290
Fix #290