CB-7863 Fixed broken test run on Windows 8.1 caused by incorrect use of promises (close #132, close #112)