Yes, that was exactly the problem. The test was expecting a list but the generic file attribute was marked as "unique", so it was only returning a string. I chose to make the test pass by changing the test; it could also pass by changing [this line in the model](https://github.com/curationexperts/sufia/blob/master/lib/sufia/generic_file.rb#L33). I don't know which is right.