Add test case for #688

@malukenho poke me on monday about this test: I'll explain in detail