Tests for Promise.then.