Add test for #575 bug