rename var that -> self
rename var readyPromises -> queuedPromises
rename var readyPromises -> queuedPromises in tests