Added test coverage for Queue.js