improve unit test for #174