add test case to reproduce issue #653