fix unit test of #375