Add test for issue #31