added missing test requirement

pytest is imported in `tests/test_cache.py` and `tests/test_fields.py`