Fixed tests. Reviewed-by: iveresov, never
Fix integer overflow problem in the code generated by loop optimizer. Reviewed-by: never