teset with sort of test framework that works with promises