I've added a test for checking the number of times we are calling `removeThread`. Actually the current code, as it's only deleting the UI threads when calling `deleteThreads`, should be called *once* (and implicitly we will remove all UI Threads inside the callback of `deleteThreads`, this algorithm will be executed once, and as we have 2 threads, we should have 2 calls to `removeThread`).