Run the application in a separate thread instead of separate process for easier testing

Improve names in tests