make the first test work with promises