Use different ports for the tests
Move start-work-unit second
Move the thread code to a new async loop
Add the async loop and keep the thread empty for the moment (otherwise the application terminates)