Cast to array, to make test case happy in multiple Ruby versions