Teseting fixes, and needed LOG reordering in settings.py