add gain and lost cash event.

add test case.