add test for idamax
update