Modified tests.py to be skipped if settings are not available.