Fix silly global thing in tests

For some reason I was accessing a property on the csv module rather than
`self`. Oops.