maint - fixup ruby style issues in the tests

There's [rubocop](https://github.com/bbatsov/rubocop) rules already, but my editor hook didn't fire them for a while so I accidentally violated some of them.