Add tests for queue size rest API.