Fixed broken tests in resources.py