Fixed failing test: using %w() instead of %[]

Using %w() instead of %[] because the latter returned a string instead of an array.