add a test (still failing) for issue #306