#3773 added unit test