added test for #377