added failing test for #982