Fix a typo in core.py and adjust tests requirements