Added test for #645