Add tests for queue idle() function