pass test average_of_array. Refactored test get_first_half_of_string