added unit test for #2568