generate app_context when running tasks from the queue
Merge
fix unit tests to use new settings