Test for #1163

Realized I had this branch with test from when this issue was filed. Issue was closed because fixed already, but now we have test