RF-13706: added unit test and improved the solution

- added a unit test for the removal of stale entries from the queue
- when removing a stale entry from the queue, stop the request timer (if a request timer is running)
- fixed the problem that each test method of QUnitTest executed all test modules