Introduce testing framework using pytest

should this perhaps be `.venv`, rather than `venv`?