Do some testing

We need more tests for virtualenv.

I thought I'd start by converting to pytest, mostly for familiarity and commonness with other projects.