add test to demonstrate bug reported in #166