For loops works, fix overflow in main test