add atoi32 and simple unit test