changed first test to work with PromiseArray