Introduce testing framework using pytest

Unless I'm crazy, there's no `test_common` module. I get an error to that effect when I try to run the tests.