add unit test for #633

It's better to test for the specific bug, when possible.

This reverts commit d6287f7622ec71653ec0d5b4e52a8b4992183e0c.