fixing bug when there are spaces on array and adding an array test from icecream class perspective