Added test functionality and settings.py