fixed a broken test toBe replaced with toEqual for array