fix tests and remove extra comma in array.