Continue implementing exchanging queue. Add tests