add test for issue 16