Migrate to pytest

Seems like a good idea to use something more modern. Most tests run just fine with pytest and adapting them looks straightforward.