Closes #3: eternal thread started after running the tests