LPS-37749 Restrict Document Library asynchronous testing logic inside test code