Finally switched tests from nose to pytest.