Use MyApplication instead of QCoreApplication
Mock up of the worker