added test for #628