Removed the third parameter for $.each on arrays and updated tests