Improve document list test case

I improve the QUnit test case for document list by implementing the use
of Promise objects to build a chain of actions and assertions.