add a unit test but fails to reproduce bug:(