Add test for issue 3400