add test for #138.