Fixes flake8 issues
Adds the possibility to have optional field in the config file during tests

For instance, the new field tenant_filter_file is optional. (It can be omitted
or commented out for a full sync).