Update test_config.py

Wrong way of checking for none fixed