fixed broken test of Promise.then()