Why is this initialised as an array and then over ridden in the beforeEach block as a string?