add failing test for bug in #680