Added unit test for #4525