add a test for #158