Added pytest (#sTNC-3 fixed).

This commit adds support for the pytest framework. The tests are now
organized in a separate package. Pytest configuration is done in
`pytest.ini`. To facilitate testing, a `runtests.py` file is provided.