Use the promise chain for the test