Add a test for #146