fixed settings.py and filelock.py
appended tests