Add regression test to expose bug fixed in previous commit.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>