Added a unit test for queue lenght