extra unit test with promises