Added unit test for #2626