Queue documentation
Fixed test code