Add test and HISTORY.md entry for #676