added unit test for #4489