add test for runtime issue 307