fix Integer to long cast error
update test