unit test for #180