Correction logic str_to_int()
Add test functions