MRG: Cleaner tests

In the process of working on #253 I was a little bit surprised by the number of warnings during testing. This cleans that up, and fixes a couple minor errors along the way.

Ready for review/merge.
I don't know how the internals of `catch_warnings` works... I'll try your suggestion and see if it works.